package com.wzl.controller;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wzl.entity.SysEpidemData;
import com.wzl.service.SysEpidemDataService;
import com.wzl.util.Res;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * (SysEpidemData)表控制层
 *
 * @author wzl
 * @since 2022-05-02 20:45:22
 */
@RestController
@RequestMapping("sysEpidemData")
public class SysEpidemDataController {
    /**
     * 服务对象
     */
    @Resource
    private SysEpidemDataService sysEpidemDataService;

    /**
     * 分页查询所有数据
     *
     * @param page 分页对象
     * @param sysEpidemData 查询实体
     * @return 所有数据
     */
    @GetMapping
    public Res selectAll(Page<SysEpidemData> page, SysEpidemData sysEpidemData) {
        return Res.success(this.sysEpidemDataService.page(page, new QueryWrapper<>(sysEpidemData)));
    }
}

